﻿using PureMVC.Patterns;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class StartProxy : Proxy {

	public new const string NAME = "StartProxy";
    public int num=0;
    public float startTime = 10f;

    public StartProxy() :base(NAME)
    {

    }
    public override void OnRegister()
    {
        base.OnRegister();
    }
    /// <summary>
    /// 得分数++
    /// </summary>
    public void AddScroeNum()
    {
        num++;
        SendNotification(HitSystemEvent.ScoreAdd,new int[]{ num,(int)startTime});

    }
    /// <summary>
    /// 时间减减
    /// </summary>
    public void TimeJJ()
    {
        startTime--;
        SendNotification(HitSystemEvent.TimeJJ, new int[] { num, (int)startTime });
    }
    public void GameOver()
    {
        SendNotification(HitSystemEvent.GameOver, num);
    }
}
